package xcmg.device.dao.entity.company;

import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;

public class CompanyDealerDO {

    /**
     * 是否正常。1正常维护，2已流失
     */
    public static final Integer NORMAL_FLAG_YES = 1, NORMAL_FLAG_NO = 2;

    private Long id;

    private String orgId;

    private String dealerOrgId;

    private String dealerCode;

    private String companyName;

    private String shortName;

    private String address;

    private String zip;

    private String fax;

    private String contact;

    private String contactTel;

    private Long dealerClassId;

    private Boolean isPlatCompany;

    private String platOrgId;

    private Date createDate;

    private String createId;

    private Date updateDate;

    private String updateId;

    private Boolean isDel;

    private String departemntId;

    private String owerId;

    /**
     * 下游企业在平台状态（1未邀请，2已邀请，3待审核，4审核拒绝，5审核通过）
     */
    private Integer applyStatus;

    private String customerGroup;
    private String priceGroup;
    private String saleGroup;
    private String saleDept;

    private Integer isStorage;

    private BigDecimal totalLimit;

    private BigDecimal usedLimit;

    private Integer enableLimit;

    private BigDecimal directLimit;

    private Integer isSelected;

    private String dealerActiveId;

    //客户分级
    private String dealerLevelId;
    private String dealerLevelName;

    /**
     * 是否正常。1正常维护，2已流失
     */
    private Integer normalFlag;

    /**
     * crmCode
     */
    private String dealerCrmCode;
    
    private String deptId;
    
    private String deptName;
    //国家
    private String country;
    //税率
    private BigDecimal taxRate;
    //是否清空税率，用于前端编辑时，如果原来有税率，编辑过后税率去掉了，则将税率字段值清空
    private boolean cleanTaxRate;

    @ApiModelProperty(value = "级别（云内创建的算1级别，其它2级）")
    private Integer dealerLevel;

    @ApiModelProperty(value = "类别（1、核心企业2、代理商（20二级代理商）  3、供应商4、承运商5、服务站（50二级服务站） 6、代理商&服务站）")
    private Integer dealerType;

    //营销中心code
    @ApiModelProperty(value = "营销中心code", name = "marketingCenterCode")
    private String marketingCenterCode;
    //营销中心name
    @ApiModelProperty(value = "营销中心name", name = "marketingCenterName")
    private String marketingCenterName;
    //营销中心code（非道路）
    @ApiModelProperty(value = "营销中心code（非道路）", name = "marketingCenterCode2")
    private String marketingCenterCode2;
    //营销中心name（非道路）
    @ApiModelProperty(value = "营销中心name（非道路）", name = "marketingCenterName2")
    private String marketingCenterName2;
    @ApiModelProperty(value = "坐标", name = "zb")
    private String zb;

    @ApiModelProperty(value = "服务站地址", name = "detailAddr")
    private String detailAddr;

    //用户编号（多个时用;隔开）
    @ApiModelProperty(value="用户编号（多个时用;隔开）",name="yhbh")
    private String yhbh;
    //用户名称（多个时用;隔开）
    @ApiModelProperty(value="用户名称（多个时用;隔开）",name="yhmc")
    private String yhmc;

    public Integer getNormalFlag() {
        return normalFlag;
    }

    public void setNormalFlag(Integer normalFlag) {
        this.normalFlag = normalFlag;
    }

    public String getDealerActiveId() {
        return dealerActiveId;
    }

    public void setDealerActiveId(String dealerActiveId) {
        this.dealerActiveId = dealerActiveId;
    }

    public Integer getIsSelected() {
        return isSelected;
    }

    public void setIsSelected(Integer isSelected) {
        this.isSelected = isSelected;
    }

    public Boolean getPlatCompany() {
        return isPlatCompany;
    }

    public void setPlatCompany(Boolean platCompany) {
        isPlatCompany = platCompany;
    }

    public Boolean getDel() {
        return isDel;
    }

    public void setDel(Boolean del) {
        isDel = del;
    }

    public String getCustomerGroup() {
        return customerGroup;
    }

    public void setCustomerGroup(String customerGroup) {
        this.customerGroup = customerGroup;
    }

    public String getPriceGroup() {
        return priceGroup;
    }

    public void setPriceGroup(String priceGroup) {
        this.priceGroup = priceGroup;
    }

    public String getSaleGroup() {
        return saleGroup;
    }

    public void setSaleGroup(String saleGroup) {
        this.saleGroup = saleGroup;
    }

    public String getSaleDept() {
        return saleDept;
    }

    public void setSaleDept(String saleDept) {
        this.saleDept = saleDept;
    }

    public Integer getApplyStatus()
    {
        return applyStatus;
    }

    public void setApplyStatus(Integer applyStatus)
    {
        this.applyStatus = applyStatus;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId == null ? null : orgId.trim();
    }

    public String getDealerOrgId() {
        return dealerOrgId;
    }

    public void setDealerOrgId(String dealerOrgId) {
        this.dealerOrgId = dealerOrgId == null ? null : dealerOrgId.trim();
    }

    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode == null ? null : dealerCode.trim();
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName == null ? null : shortName.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getZip() {
        return zip;
    }

    public void setZip(String zip) {
        this.zip = zip == null ? null : zip.trim();
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax == null ? null : fax.trim();
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact == null ? null : contact.trim();
    }

    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel == null ? null : contactTel.trim();
    }

    public Long getDealerClassId() {
        return dealerClassId;
    }

    public void setDealerClassId(Long dealerClassId) {
        this.dealerClassId = dealerClassId;
    }

    public Boolean getIsPlatCompany() {
        return this.isPlatCompany;
    }

    public void setIsPlatCompany(Boolean isPlatCompany) {
        this.isPlatCompany = isPlatCompany;
    }

    public String getPlatOrgId() {
        return platOrgId;
    }

    public void setPlatOrgId(String platOrgId) {
        this.platOrgId = platOrgId == null ? null : platOrgId.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId == null ? null : createId.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId == null ? null : updateId.trim();
    }

    public Boolean getIsDel() {
        return this.isDel;
    }

    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }

    public String getDepartemntId() {
        return departemntId;
    }

    public void setDepartemntId(String departemntId) {
        this.departemntId = departemntId == null ? null : departemntId.trim();
    }

    public String getOwerId() {
        return owerId;
    }

    public void setOwerId(String owerId) {
        this.owerId = owerId == null ? null : owerId.trim();
    }


    private String dealerClassName;

    public String getDealerClassName() {
        return dealerClassName;
    }

    public void setDealerClassName(String dealerClassName) {
        this.dealerClassName = dealerClassName;
    }

    public Integer getIsStorage() {
        return isStorage;
    }

    public void setIsStorage(Integer isStorage) {
        this.isStorage = isStorage;
    }

    public BigDecimal getTotalLimit() {
        return totalLimit;
    }

    public void setTotalLimit(BigDecimal totalLimit) {
        this.totalLimit = totalLimit;
    }

    public BigDecimal getUsedLimit() {
        return usedLimit;
    }

    public void setUsedLimit(BigDecimal usedLimit) {
        this.usedLimit = usedLimit;
    }

    public Integer getEnableLimit() {
        return enableLimit;
    }

    public void setEnableLimit(Integer enableLimit) {
        this.enableLimit = enableLimit;
    }

    public BigDecimal getDirectLimit() {
        return directLimit;
    }

    public void setDirectLimit(BigDecimal directLimit) {
        this.directLimit = directLimit;
    }

    public String getDealerLevelId() {
        return dealerLevelId;
    }

    public void setDealerLevelId(String dealerLevelId) {
        this.dealerLevelId = dealerLevelId;
    }

    public String getDealerLevelName() {
        return dealerLevelName;
    }

    public void setDealerLevelName(String dealerLevelName) {
        this.dealerLevelName = dealerLevelName;
    }

    public boolean isNormal() {
        return NORMAL_FLAG_YES.equals(this.normalFlag);
    }

    public boolean isNotNormal() {
        return NORMAL_FLAG_NO.equals(this.normalFlag);
    }

    public String getDealerCrmCode() {
        return dealerCrmCode;
    }

    public void setDealerCrmCode(String dealerCrmCode) {
        this.dealerCrmCode = dealerCrmCode;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

    public BigDecimal getTaxRate() {
        return taxRate;
    }

    public void setTaxRate(BigDecimal taxRate) {
        this.taxRate = taxRate;
    }

    public boolean isCleanTaxRate() {
        return cleanTaxRate;
    }

    public void setCleanTaxRate(boolean cleanTaxRate) {
        this.cleanTaxRate = cleanTaxRate;
    }

    public Integer getDealerLevel() {
        return dealerLevel;
    }

    public void setDealerLevel(Integer dealerLevel) {
        this.dealerLevel = dealerLevel;
    }

    public Integer getDealerType() {
        return dealerType;
    }

    public String getMarketingCenterCode() {
        return marketingCenterCode;
    }

    public void setMarketingCenterCode(String marketingCenterCode) {
        this.marketingCenterCode = marketingCenterCode;
    }

    public String getMarketingCenterName() {
        return marketingCenterName;
    }

    public void setMarketingCenterName(String marketingCenterName) {
        this.marketingCenterName = marketingCenterName;
    }

    public String getMarketingCenterCode2() {
        return marketingCenterCode2;
    }

    public void setMarketingCenterCode2(String marketingCenterCode2) {
        this.marketingCenterCode2 = marketingCenterCode2;
    }

    public String getMarketingCenterName2() {
        return marketingCenterName2;
    }

    public void setMarketingCenterName2(String marketingCenterName2) {
        this.marketingCenterName2 = marketingCenterName2;
    }

    public String getDetailAddr() {
        return detailAddr;
    }

    public void setDetailAddr(String detailAddr) {
        this.detailAddr = detailAddr;
    }

    public String getZb() {
        return zb;
    }

    public void setZb(String zb) {
        this.zb = zb;
    }

    public String getYhbh() {
        return yhbh;
    }

    public void setYhbh(String yhbh) {
        this.yhbh = yhbh;
    }

    public String getYhmc() {
        return yhmc;
    }

    public void setYhmc(String yhmc) {
        this.yhmc = yhmc;
    }

    public void setDealerType(Integer dealerType) {
        this.dealerType = dealerType;
    }
}
